package flyshoes.mybatis.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrderStatus {
    NOTPAY(1,"待支付"),
    OverTime(2, "已超时"),
    ALREADYPAY(3,"已支付")
    ;

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    OrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
